using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Storage;
using System.Reflection;
using System.IO;
using System.Xml.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace Xfinity.Helpers
{
    public static class SavedGame
    {
        public static string SaveData<T>(T data, string subpath, string gameName)
        {
            throw new NotImplementedException();
            //StorageDevice device = StorageDevice.ShowStorageDeviceGuide();
            //if (string.IsNullOrEmpty(gameName))
            //{
            //    gameName = Assembly.GetEntryAssembly().FullName;
            //}

            //StorageContainer container = device.OpenContainer(gameName);
            //string fileName = Path.Combine(container.Path, subpath);
            //BinaryFormatter formatter = new BinaryFormatter();
            //using (FileStream stream = File.OpenWrite(fileName))
            //{
            //    formatter.Serialize(stream, data);
            //}
            //return fileName;
        }
    }
}
